#include "AppDelegate.h"
#include "GeneratedPluginRegistrant.h"
#import  "sharedPlug.h"
#import <UMShare/UMShare.h>
#import "QSShareManager.h"
#import "TestFactory.h"
@implementation AppDelegate

- (BOOL)application:(UIApplication *)application
    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    NSLog(@"启动app");
  [GeneratedPluginRegistrant registerWithRegistry:self];
  //注册友盟分享插件
  [sharedPlug registerWithRegistrar:[self registrarForPlugin:@"sharedPlug"]];
   //注册测试插件主要为了显示原生组件
  [TestFactory registerWithRegistrar:[self registrarForPlugin:@"TestFactory"]];
  
  return [super application:application didFinishLaunchingWithOptions:launchOptions];
}
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options{
    //6.3的新的API调用，是为了兼容国外平台(例如:新版facebookSDK,VK等)的调用[如果用6.2的api调用会没有回调],对国内平台没有影响
    BOOL result = [[UMSocialManager defaultManager]  handleOpenURL:url options:options];
    if (!result) {
        // 其他如支付等SDK的回调
    }
    return result;
}
@end
